<?php

session_start();

require_once $_SERVER['DOCUMENT_ROOT'].'/adodb/DATABASE.php';
include_once($_SERVER['DOCUMENT_ROOT'].'/adodb/adodb.inc.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/adodb/tohtml.inc.php'); 



$DBConnection="remote";

define('TABLEPREFIX','nk');
define('VALIDATE_ACTIVE',0); // 0 for inactive, 1 for active

if($DBConnection=="local")
{
	/*---------Local Connection Starts----------*/
	
	$user="root";

	$pass="";

	$host="localhost";

	$db_name="noobskool";	
	$adodbcon = &ADONewConnection('mysql'); 

	$adodbcon->debug=false;
	
	$adodbcon->Connect($host,$user,$pass,$db_name);    

	/*---------Local Connection Ends------------*/

	/*---------Local URL Info Starts----------*/

	$domainName  = "http://chiron/";

	$site_url  = "http://chiron/";

	$site_url_ssl  = "http://chiron/";

	$site_name = "http://chiron/";

	/*---------Local URL Info Ends------------*/
define('SITE_URL','http://chiron/');


}

elseif($DBConnection=="remote")
{	

	/*---------Local Connection Starts----------*/

	$user = DATABASE::$username;
	$pass = DATABASE::$password;
	$host = DATABASE::$host;
	$db_name  =DATABASE::$databasename;	

	$adodbcon = &ADONewConnection(DATABASE::$connection); 

	$adodbcon->debug=false;

	$adodbcon->Connect($host,$user,$pass,$db_name);    

	

	/*---------Local Connection Ends------------*/

	/*---------Local URL Info Starts----------*/

	$domainName  = "http://www.noobskool.net/newsite";

	$site_url  = "http://www.noobskool.net/newsite/";

	$site_url_ssl  = "http://www.noobskool.net/newsite/";

	$site_name = "http://www.noobskool.net/newsite/";
define('SITE_URL','http://www.noobskool.net/newsite/');

	/*---------Local URL Info Ends------------*/

}
/* Payment Details Starts */
$PaypalID="ananda_1247833756_per@citytechcorp.com";
$PaymentMode="Test";
if($PaymentMode=='Test')	
	$PaypalUrl='https://www.sandbox.paypal.com/cgi-bin/webscr';	
elseif($PaymentMode=='Live')	
	$PaypalUrl='https://www.paypal.com/cgi-bin/webscr';	
/* Payment Details Ends */

$admin_email=$adodbcon->GetOne("SELECT admin_email FROM ".TABLEPREFIX."_admin WHERE admin_id='1'");

$items_per_page   = 30;
